﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DomainModelDemo.Model.Repository
{
    public interface IRepository<T> where T:class
    {
        void Add(T entity);
        void Update(T entity);
        void Delete(T entity);
        IList<T> FindAll();
        Post FindBy(Guid postId);
        IList<T> FindByPaged(int size, int index, out int total);
    }
}
